package cn.emailChat.ai.service;

import cn.emailChat.ai.dto.MailInboundEvent;
import cn.emailChat.ai.dto.MemoryContext;

/**
 * @Description 记忆服务接口
 * @Author susu
 * @Date 2025/8/20
 */
public interface MemoryService {
    String locateThreadId(MailInboundEvent e);
    MemoryContext buildContext(String threadId, MailInboundEvent e);
    void updateAfterReply(String threadId,
                          String contactEmail,
                          String subject,
                          String lastMessageId,
                          String lastUserText,
                          String lastAssistantText);
}
